package com.rt.easyjava.base.biz1.service.intf;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.rt.easyjava.base.biz1.bean.TmptUserSetting;
import com.rt.easyjava.base.biz1.dto.TmptUserSettingDto;
import com.rt.easyjava.common.base.Result;

/**
 *  服务类
 * @author wuxiaoyong
 * @since 2020-03-18
 */
public interface TmptUserSettingService extends IService<TmptUserSetting> {

    // ======================================================================
    // ========== 以下使用的是 Mybatis-plus 实现 ==============================
    // ======================================================================
    Result<TmptUserSettingDto> create(TmptUserSettingDto dto);
    Result<TmptUserSettingDto> createOrUpdate(TmptUserSettingDto dto);
    Result<TmptUserSettingDto> createOrUpdateGlobalUnique(TmptUserSettingDto dto);

    Result<TmptUserSettingDto> update(TmptUserSettingDto a2deptDto, Wrapper updateWrapper);

    Result<TmptUserSettingDto> page(Page<TmptUserSetting> page, Wrapper<TmptUserSetting> queryWrapper);

    Result<TmptUserSettingDto> selectAll(Wrapper<TmptUserSetting> queryWrapper);

    Result<TmptUserSettingDto> selectById(Long id);


    // ======================================================================
    // ========== 以下使用的是自定义的 mapper.xml 实现 =========================
    // ======================================================================
    Result<TmptUserSettingDto> myPage(Page<TmptUserSetting> page, Wrapper<TmptUserSetting> queryWrapper);

    Result<TmptUserSettingDto> mySelectBy(Wrapper<TmptUserSetting> queryWrapper);

    Result<TmptUserSettingDto> mySelectById(long id);

    Result<TmptUserSettingDto> mySave(TmptUserSettingDto tmptUserSettingDto);

    Result<TmptUserSettingDto> myEdit(TmptUserSettingDto tmptUserSettingDto);

    Result myDeleteById(long id,String adminMan);

}
